from evtx import PyEvtxParser
from tinydb import TinyDB, Query
print('start0')
parser = PyEvtxParser("System.evtx")
print('start1')
###for record in parser.records():
##    print(f'Event Record ID: {record["event_record_id"]}')
##    print(f'Event Timestamp: {record["timestamp"]}')
##    print(record['data'])
##    print(f'------------------------------------------')

db = TinyDB('db.json')
print('start2')
db.insert_multiple({'name': str(i)} for i in parser.records())
print('start3')
db.close()
